require 'date'

today = Date.today
birthdate = Date.new(1973, 4, 8)
bd52 = Date.new(2025, 4, 8)

# 计算出生至今的天数
days_alive = (today - birthdate).to_i

# 计算80岁时的日期
eighty_birthday = Date.new(2053, 4, 7)

seventy_years = 54
seventy_birthday = Date.new(2027, 4, 7)

# 计算80岁时还剩的天数
days_left = (seventy_birthday - today).to_i
eighty_years = 80

days_passed_52 = (today - bd52).to_i

puts "今天是#{today.strftime("%Y年%m月%d日")}，学锋，您出生至今已经活了#{days_alive}天。这是52岁的第#{days_passed_52}天，离#{seventy_years}岁还有#{days_left}天。"
